import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchLisTransfercurvezi(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findtransfercurvezi',
    method: 'get',
    params: query
  })
}

//单行删除
export function deletetransfercurvezi(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/deletetransfercurvezi',
    method: 'get',
    params: query
  })
}


export function addtransfercurvezi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/addtransfercurvezi',
    method: 'post',
    data
  })
}

export function updatetransfercurvezi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/updatetransfercurvezi',
    method: 'post',
    data
  })
}

/**
 * 获取曲线期限列表 /CurveTerm/queryTermScheme
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermScheme(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermScheme',
    method: 'get',
    params: query
  })
}


/**
 * 获取曲线期限设置列表 /CurveTerm/queryTermPrice
 * @param {*} query
 * @returns
 */
export function curveTermQueryTermPrice(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveTerm/queryTermPrice',
    method: 'get',
    params: query
  })
}